package com.woniu40.petai_user.entity;

import java.math.BigDecimal;

public class OrderItem {
    private Integer orderItemId;

    private Integer goodsId;

    private Integer buyCount;

    private BigDecimal allPrice;

    private Integer colorId;

    private Integer tasteId;

    private Integer sizeId;

    private Integer orderId;

    private Integer userId;

    private Integer cartId;

    public OrderItem() {
    }

    public OrderItem(Integer orderItemId, Integer goodsId, Integer buyCount, BigDecimal allPrice, Integer colorId, Integer tasteId, Integer sizeId, Integer orderId, Integer userId, Integer cartId) {
        this.orderItemId = orderItemId;
        this.goodsId = goodsId;
        this.buyCount = buyCount;
        this.allPrice = allPrice;
        this.colorId = colorId;
        this.tasteId = tasteId;
        this.sizeId = sizeId;
        this.orderId = orderId;
        this.userId = userId;
        this.cartId = cartId;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "orderItemId=" + orderItemId +
                ", goodsId=" + goodsId +
                ", buyCount=" + buyCount +
                ", allPrice=" + allPrice +
                ", colorId=" + colorId +
                ", tasteId=" + tasteId +
                ", sizeId=" + sizeId +
                ", orderId=" + orderId +
                ", userId=" + userId +
                ", cartId=" + cartId +
                '}';
    }

    public Integer getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Integer orderItemId) {
        this.orderItemId = orderItemId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public BigDecimal getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }

    public Integer getColorId() {
        return colorId;
    }

    public void setColorId(Integer colorId) {
        this.colorId = colorId;
    }

    public Integer getTasteId() {
        return tasteId;
    }

    public void setTasteId(Integer tasteId) {
        this.tasteId = tasteId;
    }

    public Integer getSizeId() {
        return sizeId;
    }

    public void setSizeId(Integer sizeId) {
        this.sizeId = sizeId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }
}